<?php


namespace App\Http\Controllers\Common;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache;
use App\Services\QiniuService;
use App\Utils\Code;

class QiniuController extends Controller
{

    /**
     * @api {post} test/python 测试python
     */
    public function getUploadToken(Request $request, QiniuService $service) {
        return $service->getToken($request->input());
    }
    
    public function callback(Request $request, QiniuService $service) {
        return $service->callback($request->input());
    }
    
    public function callbackImage(Request $request, QiniuService $service) {
        return $service->callbackImage($request->input());
    }
}
